package de.pierrepoenisch.checkyoursite.client;

/**
 * This enumeration holds all possible states for a CheckResult.
 * 
 * @author ppoenisc
 *
 */
public class CheckResultStateET extends AbstractEnum {
	
	public CheckResultStateET (String name){
		super(name);
	}
	
	//state that shows that the check was successful
	public static final CheckResultStateET OK = new CheckResultStateET("ok");
	
	//state that shows that the check was not successful	
	public static final CheckResultStateET NOK = new CheckResultStateET("nok");
	
	//this constructor is neede by the GWT to be serializable
	public CheckResultStateET(){	
	}
	
	//needed to print the state
	public String toString(){
		if (NOK.equals(this)){
			return new String("NOK");
		}else{
			return new String("OK");
		}
	}
}
